package com.wf.course.dao;

import com.utils.page.PageBean;
import com.wf.course.model.course.CourseWork;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ICourseWorkMapper {

    List<CourseWork> list(PageBean<CourseWork> pageBean);

    Integer count(PageBean<CourseWork> pageBean);

    CourseWork searchCourseWork(Integer id);

    Integer insert(CourseWork courseWork);

    Integer update(CourseWork courseWork);

    Integer delete(Integer id);

    Integer updateForm(CourseWork courseWork);

    List<CourseWork> memberWorkList(PageBean<CourseWork> pageBean);

    Integer memberWorkCount(PageBean<CourseWork> pageBean);

    CourseWork searchMemberWork(Integer id);

    Integer updateMemberWork(CourseWork courseWork);

    Integer deleteMemberWorkByChapterId(@Param("chapterId") Integer chapterId);

}
